﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModels.Entities
{
    /// <summary>
    /// 索引
    /// </summary>
    [Index(nameof(Text1), IsUnique = true, Name = "MyIndex")]
    [Index(nameof(Text2), nameof(Text3))]
    public class IndexEntity
    {
        public int Id { get; set; }
        public string Text1 { get; set; }
        public string Text2 { get; set; }
        public string Text3 { get; set; }
        public string Text4 { get; set; }
        public string Text5 { get; set; }
        public int Number1 { get; set; }
        public int Number2 { get; set; }

    }
}
